var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = e("GlobalParams"),
    a = e("ModuleUI"),
    i = e("UIManager"),
    r = e("GuideMaskViewUI"),
    s = cc._decorator,
    l = s.ccclass,
    c =
        (s.property,
        (function (e) {
            function t() {
                return (null !== e && e.apply(this, arguments)) || this;
            }
            return (
                __extends(t, e),
                (t.prototype.initView = function () {
                    e.prototype.initView.call(this);
                }),
                (t.prototype.OnClick = function (t) {
                    switch ((e.prototype.OnClick.call(this, t), t.node.name)) {
                        case "begin_guide_btn":
                            (n.GlobalParams.PlayGuideMode = !0),
                                cc
                                    .find("UIManager")
                                    .getComponent(i.default)
                                    .showPopup("GuideMaskViewUI", function (e) {
                                        e.getComponent(r.default).showGuideInfoView(0);
                                    }),
                                this.node.destroy();
                            break;
                        case "skip_guide_btn":
                            (n.GlobalParams.JoinGuideMode.value = !1), this.node.destroy();
                    }
                }),
                __decorate([l], t)
            );
        })(a.default));
o.default = c;
